<%@page import="javabean.Util"%>
<%@page import="javabean.Base"%>
<%@page import="java.sql.ResultSet"%>
<%@page import="java.sql.PreparedStatement"%>
<%@page import="java.sql.Connection"%>
<%@ page import="java.sql.*"%>
<%@ page import="java.awt.image.BufferedImage" %>
<%@ page import="javax.imageio.ImageIO" %>
<%@ page import="java.io.File" %>
<%@ page import="javabean.barcode" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title></title>
    <link rel="stylesheet" href="../public/layui/css/layui.css"  media="all">
    <script src="../public/layui/layui.js" charset="utf-8"></script>
    <style>
        .layui-table, .layui-table-view{
            margin-top: 0px;
        }
    </style>
</head>
<body>
<jsp:useBean id="code" scope="page" class="javabean.barcode"></jsp:useBean>
<%
    String id = request.getParameter("id");
    String location = request.getParameter("location");

%>

<%
    BufferedImage image = barcode.insertWords(barcode.getBarCode(id+location), id+location);
    ImageIO.write(image, "png", new File("C://Users//cgbqw//Desktop//abc//src//main//webapp//admin//image//barcodebook.png"));

%>
<a style="position: absolute;left: 250px;top: 180px"><img src="image/barcodebook.png"  width="200" height="90" alt="ERROR" ></a>

</body>
</html>